package rlex.classes.program;

import java.util.List;

/*
 * EXP, EXP, EXP
 */
public class ExpressionList {
	private List<Expression> expressions;

	public List<Expression> getExpressions() {
		return expressions;
	}

	public void setExpressions(List<Expression> expressions) {
		this.expressions = expressions;
	}
	
	public String toString() {
		String ret = "";
		for (int i = 0; i < expressions.size(); i++) {
			ret += expressions.get(i).toString();
			ret += ",";
		}
		return ret;
	}
	
	public void display(int level) {
		for (int i = 0; i < expressions.size(); i++) {
			expressions.get(i).display(0);
			System.out.print(", ");
		}
	}
	
}
